import math

class Solution:
    def constructRectangle(self, area: int):
        res = []

        for w in range(int(math.sqrt(area)), 0, -1):
            l = area / w
            if l == int(l):
                return [int(l), w]

        return res


s = Solution()
print(s.constructRectangle(1))
print(s.constructRectangle(2))
print(s.constructRectangle(4))
print(s.constructRectangle(6))
